package com.golddaymicromall.util;

/**
 * Created by dawd on 2016/5/19.
 */
public class Singleton {
    private Singleton() {}
    private static Singleton single=null;
    private String saleorbuy;
    //静态工厂方法
    public static Singleton getInstance(String saleorbuy) {
        if (single == null) {
            single = new Singleton();

        }
        single.saleorbuy=saleorbuy;
        return single;
    }
}
